package com.gdth.widget.viewpager;

import java.util.List;

import com.gdth.widget.viewpager.adapter.BasePagerAdapter;

import android.content.Context;
import android.support.v4.view.ViewPager;
import android.view.View;

/**
 * 
 * @author Arvin
 *
 */
public class AutoViewPager extends ViewPager{
	/**
     * 数据源适配器
     */
	private BasePagerAdapter mBasePagerAdapter;
	
	/**
     * 数据源
     */
    protected List<View> imageViewList;
    
    protected List<String> imageList;
	
	public AutoViewPager(Context context) {
		super(context);
		// TODO Auto-generated constructor stub
	}
	
	public AutoViewPager(Context context, List<View> imageViewList) {
		super(context);
		// TODO Auto-generated constructor stub
		
		this.imageViewList = imageViewList;
		
		mBasePagerAdapter = new BasePagerAdapter(imageViewList);
		
		this.setAdapter(mBasePagerAdapter);
	}
}
